#define _CRT_SECURE_NO_WARNINGS


#include "SList.h"

int main()
{
	SLTNode* plist =NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);

	SListPushFront(&plist, 0);

	//SListPopBack(&plist);
	//SListPopBack(&plist);

	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	SLTNode* pos1 = SListFind(plist, 0);
	SListInsert(&plist, pos1, 9);
	SLTNode* pos2 = SListFind(plist, 9);
	SListErase(&plist, pos2);

	SListPrintf(plist);


	return 0;
}